import request from '@/util/request'

// my team
export function teamList(data) {
  return request({
    url: '/api/my/team/list',
    method: 'post',
    data
  })
}

// my commission
export function commissionList(data) {
  return request({
    url: '/api/my/commission/list',
    method: 'post',
    data
  })
}

// ---------------------------------------------------------

// my cash
export function cashList(data) {
  return request({
    url: '/api/my/cash/list',
    method: 'post',
    data
  })
}

// cash set
export function cashFetch(data) {
  return request({
    url: '/api/my/cash/fetch',
    method: 'post',
    data
  })
}

// cash submit
export function cashSave(data) {
  return request({
    url: '/api/my/cash/save',
    method: 'post',
    data
  })
}

// ---------------------------------------------------------

// my group list
export function groupList(data) {
  return request({
    url: '/api/my/group/create',
    method: 'post',
    data
  })
}

// my join group list
export function groupJoinList(data) {
  return request({
    url: '/api/my/group/join',
    method: 'post',
    data
  })
}

// pool total
export function getPoolTotal(data) {
  return request({
    url: '/api/my/group/get-pool-total',
    method: 'post',
    data
  })
}

export function poolList(data) {
  return request({
    url: '/api/my/group/pool-list',
    method: 'post',
    data
  })
}

// group level
export function getLevel(data) {
  return request({
    url: '/api/my/group/level',
    method: 'post',
    data
  })
}

// ---------------------------------------------------------

export function active(data) {
  return request({
    url: '/api/my/order/active',
    method: 'post',
    data
  })
}

// order list
export function orderList(data) {
  return request({
    url: '/api/my/order/list',
    method: 'post',
    data
  })
}

// order reset pay
export function orderResetPay(data) {
  return request({
    url: '/api/my/order/reset-pay',
    method: 'post',
    data
  })
}

// order delete
export function orderDelete(data) {
  return request({
    url: '/api/my/order/delete',
    method: 'post',
    data
  })
}

// order urge
export function orderUrge(data) {
  return request({
    url: '/api/my/order/urge',
    method: 'post',
    data
  })
}

// order confirm received
export function orderConfirmReceived(data) {
  return request({
    url: '/api/my/order/confirm-received',
    method: 'post',
    data
  })
}

// order view express
export function orderViewExpress(data) {
  return request({
    url: '/api/my/order/view-express',
    method: 'post',
    data
  })
}

// order finish
export function orderFinish(data) {
  return request({
    url: '/api/my/order/finish',
    method: 'post',
    data
  })
}

// ---------------------------------------------------------

// order item express
export function express(data) {
  return request({
    url: '/api/my/order/express',
    method: 'post',
    data
  })
}
